package com.rollcall;

public class Student {
    private int id;
    private String name;
    private int orderNum;
    private int absence; // 0-正常，1-请假

    // getters and setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public int getOrderNum() { return orderNum; }
    public void setOrderNum(int orderNum) { this.orderNum = orderNum; }
    public int getAbsence() { return absence; }
    public void setAbsence(int absence) { this.absence = absence; }

    @Override
    public String toString() {
        return "Student [id=" + id + ", name=" + name + ", orderNum=" + orderNum + ", absence=" + absence + "]";
    }
}
